#define _CRT_SECURE_NO_WARNINGS
#include"AVLTree.h"

void AVLTreeTest()
{
	int a[] = { 4,2,6,1,3,5,15,7,16,14 };
	AVLTree<int ,int> t1;
	for (auto e : a)
	{
		t1.Insert({ e,e });
	}
	t1.InOrder();

	cout << t1.IsBalanceTree() << endl;

}


int main()
{
	AVLTreeTest();
	return 0;
}